package com.bootdo.staticmask.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.staticmask.dao.MaskRuleDao;
import com.bootdo.staticmask.domain.MaskRuleDO;
import com.bootdo.staticmask.service.MaskRuleService;



@Service
public class MaskRuleServiceImpl implements MaskRuleService {
	@Autowired
	private MaskRuleDao maskRuleDao;
	
	@Override
	public MaskRuleDO get(Long maskRuleId){
		return maskRuleDao.get(maskRuleId);
	}
	
	@Override
	public List<MaskRuleDO> list(Map<String, Object> map){
		return maskRuleDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return maskRuleDao.count(map);
	}
	
	@Override
	public int save(MaskRuleDO maskRule){
		return maskRuleDao.save(maskRule);
	}
	
	@Override
	public int update(MaskRuleDO maskRule){
		return maskRuleDao.update(maskRule);
	}
	
	@Override
	public int remove(Long maskRuleId){
		return maskRuleDao.remove(maskRuleId);
	}
	
	@Override
	public int batchRemove(Long[] maskRuleIds){
		return maskRuleDao.batchRemove(maskRuleIds);
	}

	@Override
	public List<MaskRuleDO> findAll() {
		return maskRuleDao.findAll();
	}

}
